<?php

namespace pmvc\data;

use pmvc\tx\Transaction;
use pmvc\tx\TransactionProvider;

interface DataSource
	extends TransactionProvider {
	
	public function connect();
	
	public function escape($str);
	
	public function query();
	
	public function update();
	
	public function querySingle();
	
	public function queryMultiple();
	
	public function lastInsertId();
	
	public function numberOfRows($res);
	
	public function numberOfRowsAffectedRows($res);
	
	public function fetchRowObject($res);
	
	public function fetchRowObjects($res);
	
	public function freeResult($res);
	
}
?>